Blockly.Python['time_package'] = function(block) {
    //return "import RPi.GPIO as GPIO \nGPIO.setmode(GPIO.BOARD) \nGPIO.setwarnings(False) \n"
    return "import time \n";
};

Blockly.Python['time_sleep'] = function(block) {
    var second = block.getFieldValue('SECOND');
    return 'time.sleep(' + second + ') \n';
};